
def save(PATH, PARAM):
    file = open(PATH, 'w+')

    file.write('EnableLog:' + str(PARAM['EnableLog']))
    file.write('\n')
    file.write('LogDir:' + str(PARAM['LogDir']))
    file.write('\n')
    
    file.close()
    return

def load(PATH):
    file = open(PATH, 'r')
    
    PARAM={}

    PARAM['EnableLog'] = bool(file.readline().strip().split(':')[1])
    PARAM['LogDir'] = file.readline().strip().split(':')[1]
    
##    print('Returning PARAM - ' + str(PARAM))
    return PARAM
